package cn.itsource.ymjs.service;

import cn.itsource.ymjs.entity.FitnessCourse;
import cn.itsource.ymjs.query.CourseQuery;
import cn.itsource.ymjs.result.JSONResult;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IFitnessCourseService  extends IBaseService<FitnessCourse, CourseQuery>{

    List<FitnessCourse> getAllCourse();

    /**
     * 添加或者更新一条课程，根据是否有id
     * @param fitnessCourse
     */
    void save(FitnessCourse fitnessCourse);

    JSONResult online(List<Long> id);

    JSONResult offline(List<Long> id);
}
